<include file="App/Admin/View/Public/left.html"/>
	<div class="main-wrap" style="background-color:#FFF;">
		<div style="widht:98%; height:1400px; margin:10px 10px;">
			<div style="width:98%; color:#5090C0; text-align:left; margin:5px 15px;">权限管理 > 用户权限管理</div>
			<div style="width:100%; border-bottom:1px solid #E6E6E6;"></div>
			<div style="width:98%; height:680px;margin:10px auto;">	
				<div style="background-color:#5090C0; width:99%; height:30px; line-height:30px; color:#FFF; padding-left:15px;">功能列表</div>
				<form action="{:U('Manage/saveNav')}" method="post">
				<input name="id" value="{$id}" type="hidden">
				<foreach name="rules_total" item="vo">	
				<div style="margin-left:15px; font-size:14px;" class="CheckboxGroup">
					<div><img src="+.png" onclick="show1(this)"/><input type="checkbox" name="rules[]" value="{$vo['id']}" id="CheckboxGroup1_2" class="duoxuan" style="margin-top:3px;" onclick="allselect(this);" <in name="vo['id']" value="$rules">checked</in>/>{$vo['title']}</div>
					<foreach name="vo['father']" item="bo">
					<div style="margin-left:20px; display:none;" class="CheckboxGroup">
						<div><img src="+.png" onclick="show1(this)"/><input type="checkbox" name="rules[]" value="{$bo['id']}" id="CheckboxGroup2_0" class="duoxuan" style="margin-top:3px;" onclick="allselect(this);" <in name="bo['id']" value="$rules">checked</in>/>{$bo['title']}</div>
						<foreach name="bo['child']" item="co">
						<div style="margin-left:35px; display:none;"><input type="checkbox" name="rules[]" value="{$co['id']}" id="CheckboxGroup3_0" class="duoxuan" style="margin-top:3px;" <in name="co['id']" value="$rules">checked</in>/>{$co['title']}</div>
						</foreach>
					</div>
					</foreach>
				</div>
				</foreach>
				<input type="submit" value="提交">
				<a href="{:U('Manage/juese_index')}"><input type="button" value="返回"></a>
				</form>
				
			</div>
		
		
		
		
		
	  </div>
	</div>
</div>
</body>
</html>
<script>
function show1(_this){
	$(_this).parent().siblings().toggle();
	
}
function allselect(_this){
	if($(_this).is(":checked")){
		$(_this).closest(".CheckboxGroup").find("input[type='checkbox']").prop("checked",true);
	}else{
		$(_this).closest(".CheckboxGroup").find("input[type='checkbox']").prop("checked",false);
	}
}
</script>
<SCRIPT Language=VBScript><!--

//--></SCRIPT>